<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
 * Created on 2012-7-4
 *
 * ����settings��
 *
 */
 class settings_m extends CI_Model{
 	const TB = 'settings';
 	function _construct(){
 		parent::__construct();
 	}
 	/*
 	 * get_settings
 	 *
 	 * ��ȡsettings�����
 	 * access public
 	 * return array
 	 */
 	public function get($item =''){
 		$table = self::TB;
 		if($item !=''){
 			$result = $this->db->get_where($table,array('name'=>$item));
 		}
		return $result!='' ? $result->row()->value : false;

 	}
 	public function show(){

 	}
 }
?>
